#include<stdio.h>
#include<math.h>
int main(void)
{
    int N,i;
    double sum = 0.0;
    scanf("%d",&N);

    for(i=1;i<=N;i++){
        sum += sqrt(i);
        
    }

    printf("sum = %.2lf",sum);

    return 0;

}
